<template>
  <div id="app">
    <Header/>
<!--    路由出口-->
    <RouterView></RouterView>
<!--    在home、search显示的，在登陆、注册隐藏-->
    <Footer v-show="$route.path=='/home'||$route.path=='/search'"/>
  </div>
</template>

<script>

  import Header from './components/Header'
  import Footer from './components/Footer'
export default {
  name: 'App',
  components: {
    Header,Footer
  }
}
</script>

<style>

</style>
